package com.earthea.scaffold.system.service;

import com.earthea.scaffold.common.entity.BaseCollectionRsp;
import com.earthea.scaffold.domain.DictData;
import com.earthea.scaffold.mapper.DictDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 字典 业务层处理
 */
@Service
public class DictDataService {
    @Autowired
    private DictDataMapper dictDataMapper;

    /**
     * 根据条件分页查询字典数据
     *
     * @param dictData 字典数据信息
     * @return 字典数据集合信息
     */
    public BaseCollectionRsp<DictData> select(DictData dictData) {
        return new BaseCollectionRsp<>(dictDataMapper.selectList(dictData));
    }

}